package locales;

import contenidosello.Artista;
import java.util.HashMap;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author jorgequinterodriguez
 */
public class Local {
    private int idLocal;
    private String direccion;
    public static int contLocal = 0;
    private static HashMap <Integer, Reserva> listaReservas = new HashMap <Integer, Reserva> ();
    
    public static HashMap <Integer,Local> listaLocales  = new HashMap <Integer,Local> ();

    public Local (String dir) {
        idLocal = contLocal + 1;
        contLocal++;
        direccion = dir;
        listaLocales.put(idLocal, this);
    }

    public Reserva altaReserva() {
        Artista art = null;
        int hr = 0;
        int dr = 0;
        
        return (new Reserva(art, hr, dr));
    }
    
    public void altaIncidencia ()  {

    }
    
    public void altaMaterial ()  {

    }
    
    public int tamañoListaReservas() {
        return this.listaReservas.size();
    }
    
}


